package com.ccnu.sb.dubbo;

import org.apache.dubbo.config.annotation.DubboService;

import java.util.HashMap;
import java.util.Map;

@DubboService(version = "1.0.0")
public class DubboServiceProviderImpl implements DubboServiceProvider {

	@Override
	public String sayHello(String name) {
		return "Hello, " + name + " (from Spring Boot),ThreadID=" + Thread.currentThread().threadId();
	}

	@Override
	public Map<String, Object> testMap(Map<String, Object> reqMap) {
		Map<String, Object> rspMap = new HashMap<String, Object>();
		rspMap.put("key1", "value1");
		rspMap.put("key2", "value2");
		rspMap.put("key3", "value3");
		return rspMap;
	}
}
